package com.party.service.document;

/**
 * Created with IntelliJ IDEA.
 * User: beyond
 * Date: 14-9-18
 * Time: 下午10:37
 * To change this template use File | Settings | File Templates.
 */

import com.party.common.Page;
import com.party.model.Document;

import java.util.List;

/**
 * 1文档
 */
public interface DocumentService {
    /**
     * 1文档
     * 增删改查
     */
    public int addDocument(Document document);

    public int deleteDocumentByPrimaryKey(Integer id);

    public int deleteExamByIds(String ids);

    public Document getDocumentByPrimaryKey(Integer id);

    public int updateDocumentByPrimaryKey(Document document);

    /**
     * 获取指定类型和最新条数的文档
     * @param type
     * @param documentNum
     * @return
     */
    List<Document> getDocumentList(String type, Integer documentNum);

    /**
     * 获得文档数据列表（分页）
     * @param pageSize
     * @param pageNumber
     * @return
     */
    public Page getDocumentList(Document document, int pageSize, int pageNumber);
}
